package org.ru.mse10.cvis.entity.misc;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The Class DateRange.
 */
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "date_range")
public class DateRange extends Identity {

	/** The start. */
	private Date start;

	/** The end. */
	private Date end;

	/**
	 * Gets the start.
	 * 
	 * @return the start
	 */
	@Temporal(TemporalType.DATE)
	public Date getStart() {
		return start;
	}

	/**
	 * Sets the start.
	 * 
	 * @param start
	 *            the new start
	 */
	public void setStart(Date start) {
		this.start = start;
	}

	/**
	 * Gets the end.
	 * 
	 * @return the end
	 */
	@Temporal(TemporalType.DATE)
	public Date getEnd() {
		return end;
	}

	/**
	 * Sets the end.
	 * 
	 * @param end
	 *            the new end
	 */
	public void setEnd(Date end) {
		this.end = end;
	}

}
